package com.rz.htk.order.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rz.core.common.model.PageEntity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.List;

/**
 * 订单信息表
 */
@TableName(value = "ord_order_his")
public class OrderHis extends PageEntity {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String commodityCode;//订单编号
    private String afterCode;//转单号
    private String destination; //目的地国家
    private String province ;//省
    private String city;//市
    private String commodityName;//物品名称
    private Double weight; //重量
    private BigDecimal commodityValue;//申报价格
    private String longs;//长
    private String width;//宽
    private String high;//高
    private String specificationModel;//规格型号
    private Integer amount;//数量
    private String roughWeight;//毛重
    private String netWeight;//净重
    private String unit ; //单位
    private Double price;//单价
    private Double totalPrices;//总价
    private String recipientsName; //收件人姓名
    private String recipientsCompany;//收件人公司名称
    private String unifyCode;//统一编号
    private String recipientsIdNumber; //收件人身份证
    private String recipientsAddress;//收件人地址
    private String recipientsPhone;//收件人电话
    private String recipientsPostcode;//收件人邮编
    private String senderName; //发件人姓名
    private String senderCompany;//发件人公司名称
    private String senderIdNumber; //发件人身份证
    private String senderPhone;//发件人电话
    private String senderPostcode;//发件人邮编
    private Integer transportation;//路线
    private String senderAddress;//收件人地址
    private Integer state ;//订单流程状态
    private Integer verifyState; // 推送状态 默认为0，推送成功与不需要推送的订单，失败：1
    private Integer rmkState; // 订单本身状态，是否正常，0为正常，1为异常
    private String rmk ; //备注。
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime creationTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime hisTime;
    private String times;
    private Double dsk;
    /** 创建者 */
    private Integer crteMngId;
    /** 修改者 */
    private Integer delMngId;
    /** 状态 */
    private Integer delFlag;
    private String ssid;
    private String ssno;
    private String ssna;
    private String esid;
    private String esno;
    private String esna;
    private Integer retryCount = 0;
    private String prdCode;
    private Integer trackSuccess;
    private Integer pushYousuFlag = 0;


    @TableField(exist = false)
    private String startTime;
    @TableField(exist = false)
    private String endTime;
    @TableField(exist = false)
    private List<Commodity> commodityList;
    @TableField(exist = false)
    private String commodityDesc;
    @TableField(exist = false)
    private String commodityWeight;
    @TableField(exist = false)
    private Integer printTempId;
    @TableField(exist = false)
    private String transportationName;
    //快递类型
    @TableField(exist = false)
    private String expressType;
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCommodityCode() {
        return commodityCode;
    }

    public void setCommodityCode(String commodityCode) {
        this.commodityCode = commodityCode;
    }

    public String getAfterCode() {
        return afterCode;
    }

    public void setAfterCode(String afterCode) {
        this.afterCode = afterCode;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public BigDecimal getCommodityValue() {
        return commodityValue;
    }

    public void setCommodityValue(BigDecimal commodityValue) {
        this.commodityValue = commodityValue;
    }

    public String getLongs() {
        return longs;
    }

    public void setLongs(String longs) {
        this.longs = longs;
    }

    public String getWidth() {
        return width;
    }

    public void setWidth(String width) {
        this.width = width;
    }

    public String getHigh() {
        return high;
    }

    public void setHigh(String high) {
        this.high = high;
    }

    public String getSpecificationModel() {
        return specificationModel;
    }

    public void setSpecificationModel(String specificationModel) {
        this.specificationModel = specificationModel;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public String getRoughWeight() {
        return roughWeight;
    }

    public void setRoughWeight(String roughWeight) {
        this.roughWeight = roughWeight;
    }

    public String getNetWeight() {
        return netWeight;
    }

    public void setNetWeight(String netWeight) {
        this.netWeight = netWeight;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getTotalPrices() {
        return totalPrices;
    }

    public void setTotalPrices(double totalPrices) {
        this.totalPrices = totalPrices;
    }

    public String getRecipientsName() {
        return recipientsName;
    }

    public void setRecipientsName(String recipientsName) {
        this.recipientsName = recipientsName;
    }

    public String getRecipientsCompany() {
        return recipientsCompany;
    }

    public void setRecipientsCompany(String recipientsCompany) {
        this.recipientsCompany = recipientsCompany;
    }

    public String getUnifyCode() {
        return unifyCode;
    }

    public void setUnifyCode(String unifyCode) {
        this.unifyCode = unifyCode;
    }

    public String getRecipientsIdNumber() {
        return recipientsIdNumber;
    }

    public void setRecipientsIdNumber(String recipientsIdNumber) {
        this.recipientsIdNumber = recipientsIdNumber;
    }

    public String getRecipientsAddress() {
        return recipientsAddress;
    }

    public void setRecipientsAddress(String recipientsAddress) {
        this.recipientsAddress = recipientsAddress;
    }

    public String getRecipientsPhone() {
        return recipientsPhone;
    }

    public void setRecipientsPhone(String recipientsPhone) {
        this.recipientsPhone = recipientsPhone;
    }

    public String getRecipientsPostcode() {
        return recipientsPostcode;
    }

    public void setRecipientsPostcode(String recipientsPostcode) {
        this.recipientsPostcode = recipientsPostcode;
    }

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public String getSenderCompany() {
        return senderCompany;
    }

    public void setSenderCompany(String senderCompany) {
        this.senderCompany = senderCompany;
    }

    public String getSenderIdNumber() {
        return senderIdNumber;
    }

    public void setSenderIdNumber(String senderIdNumber) {
        this.senderIdNumber = senderIdNumber;
    }

    public String getSenderPhone() {
        return senderPhone;
    }

    public void setSenderPhone(String senderPhone) {
        this.senderPhone = senderPhone;
    }

    public String getSenderPostcode() {
        return senderPostcode;
    }

    public void setSenderPostcode(String senderPostcode) {
        this.senderPostcode = senderPostcode;
    }

    public Integer getTransportation() {
        return transportation;
    }

    public void setTransportation(Integer transportation) {
        this.transportation = transportation;
    }

    public String getSenderAddress() {
        return senderAddress;
    }

    public void setSenderAddress(String senderAddress) {
        this.senderAddress = senderAddress;
    }

    public LocalDateTime getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(LocalDateTime creationTime) {
        this.creationTime = creationTime;
    }

    public String getTimes() {
        return times;
    }

    public void setTimes(String times) {
        this.times = times;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public List<Commodity> getCommodityList() {
        return commodityList;
    }

    public void setCommodityList(List<Commodity> commodityList) {
        this.commodityList = commodityList;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getVerifyState() {
        return verifyState;
    }

    public void setVerifyState(Integer verifyState) {
        this.verifyState = verifyState;
    }

    public Integer getCrteMngId() {
        return crteMngId;
    }

    public void setCrteMngId(Integer crteMngId) {
        this.crteMngId = crteMngId;
    }

    public Integer getRmkState() {
        return rmkState;
    }

    public void setRmkState(Integer rmkState) {
        this.rmkState = rmkState;
    }

    public String getRmk() {
        return rmk;
    }

    public void setRmk(String rmk) {
        this.rmk = rmk;
    }

    public String getCommodityDesc() {
        return commodityDesc;
    }

    public void setCommodityDesc(String commodityDesc) {
        this.commodityDesc = commodityDesc;
    }

    public Integer getPrintTempId() {
        return printTempId;
    }

    public void setPrintTempId(Integer printTempId) {
        this.printTempId = printTempId;
    }

    public String getSsid() {
        return ssid;
    }

    public void setSsid(String ssid) {
        this.ssid = ssid;
    }

    public String getSsno() {
        return ssno;
    }

    public void setSsno(String ssno) {
        this.ssno = ssno;
    }

    public String getSsna() {
        return ssna;
    }

    public void setSsna(String ssna) {
        this.ssna = ssna;
    }

    public String getEsid() {
        return esid;
    }

    public void setEsid(String esid) {
        this.esid = esid;
    }

    public String getEsno() {
        return esno;
    }

    public void setEsno(String esno) {
        this.esno = esno;
    }

    public String getEsna() {
        return esna;
    }

    public void setEsna(String esna) {
        this.esna = esna;
    }

    public String getPrdCode() {
        return prdCode;
    }

    public void setPrdCode(String prdCode) {
        this.prdCode = prdCode;
    }


    public Integer getRetryCount() {
        return retryCount;
    }

    public void setRetryCount(Integer retryCount) {
        this.retryCount = retryCount;
    }

    public String getCommodityWeight() {
        return commodityWeight;
    }

    public void setCommodityWeight(String commodityWeight) {
        this.commodityWeight = commodityWeight;
    }

    public Integer getTrackSuccess() {
        return trackSuccess;
    }

    public void setTrackSuccess(Integer trackSuccess) {
        this.trackSuccess = trackSuccess;
    }

    public void setTotalPrices(Double totalPrices) {
        this.totalPrices = totalPrices;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getTransportationName() {
        return transportationName;
    }

    public void setTransportationName(String transportationName) {
        this.transportationName = transportationName;
    }

    public Integer getPushYousuFlag() {
        return pushYousuFlag;
    }

    public void setPushYousuFlag(Integer pushYousuFlag) {
        this.pushYousuFlag = pushYousuFlag;
    }

    public Double getDsk() {
        return dsk;
    }

    public void setDsk(Double dsk) {
        this.dsk = dsk;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getExpressType() {
        return expressType;
    }

    public void setExpressType(String expressType) {
        this.expressType = expressType;
    }

    public LocalDateTime getHisTime() {
        return hisTime;
    }

    public void setHisTime(LocalDateTime hisTime) {
        this.hisTime = hisTime;
    }

    public Integer getDelMngId() {
        return delMngId;
    }

    public void setDelMngId(Integer delMngId) {
        this.delMngId = delMngId;
    }
}
